home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Developer Essentials / MPW Interfaces & Libraries / AIncludes / QDOffscreenEqu.a < prev    next >
Encoding:
Text File  |  1992-01-29  |  2.2 KB  |  59 lines  |  [TEXT/MPS ]

  1. ; Version: 3.14
  2. ; Created: Friday, October 20, 1989 at 9:42:37 PM
  3. ;
  4. ; File: QDOffscreenEqu.a
  5. ;
  6. ; Assembler Interface to the Macintosh Libraries
  7. ; Copyright Apple Computer, Inc.  1985-1991
  8. ; All rights reserved
  9. ;
  10. ;___________________________________________________________________________
  11. ;
  12. ; Offscreen Equates -- This file defines the public equates for Offscreen
  13. ; routines.
  14. ;___________________________________________________________________________
  15.  
  16.     IF &TYPE('__IncludingQDOffscreenEqu__') = 'UNDEFINED' THEN
  17. __IncludingQDOffscreenEqu__    SET    1
  18.  
  19. ; New Error codes
  20.  
  21. cDepthErr         EQU         -157                      ; invalid pixel depth
  22.  
  23. ; Flag bits passed to or returned by UpdateGWorld
  24.  
  25. purgePixBit       EQU         0                         ; make the offscreen buffer purgeable
  26. noNewDeviceBit    EQU         1                         ; don't create an offscreen device
  27. useTempMemBit      EQU         2                         ; create the buffer in MF temp. memory
  28. keepLocalBit    EQU            3                        ; keep buffer in main memory
  29. pixelsPurgeableBit EQU        6                         ; pixels are purgeable
  30. pixelsLockedBit   EQU         7                         ; pixels are locked
  31. mapPixBit         EQU         16                        ; set if color table mapping occurred
  32. newDepthBit       EQU         17                        ; set if pixels were scaled to a different depth
  33. alignPixBit       EQU         18                        ; set if pixels were realigned to screen alignment
  34. newRowBytesBit    EQU         19                        ; set if pixmap was reconfigured in a new rowBytes
  35. reallocPixBit     EQU         20                        ; set if offscreen buffer had to be reallocated
  36. clipPixBit        EQU         28                        ; set if pixels were or are to be clipped
  37. stretchPixBit     EQU         29                        ; set if pixels were or are to be stretched/shrinked
  38. ditherPixBit      EQU         30                        ; set if pixels were or are to be dithered
  39. gwFlagErrBit      EQU         31                        ; sign bit set indicates error
  40.  
  41. ; Mask equivalents of the above bits
  42.  
  43. purgePix          EQU         $1
  44. noNewDevice       EQU         $2
  45. useTempMem         EQU         $4
  46. keepLocal        EQU            $8
  47. pixelsPurgeable   EQU         $40
  48. pixelsLocked      EQU         $80
  49. mapPix            EQU         $10000
  50. newDepth          EQU         $20000
  51. alignPix          EQU         $40000
  52. newRowBytes       EQU         $80000
  53. reallocPix        EQU         $100000
  54. clipPix           EQU         $10000000
  55. stretchPix        EQU         $20000000
  56. ditherPix         EQU         $40000000
  57. gwFlagErr         EQU         $80000000
  58.  
  59.     ENDIF    ; ...already included